﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dream
{
    class CookRobot : Robot
    {
        
        private string press;
        

        public string Press { get => press; set => press = value; }

        public CookRobot(string name, RobotTybe tybe,string press):base(name, tybe)
        {
            this.press = press;
        }

        public override void Working()
        {
            Console.WriteLine("我是{0}，这是{1}", base.Name, this.press);
        }
    }
}
